﻿using System;//press Ctrl+k+d

namespace project
{

    class Program


    {
        //4. 计算得到源栈同学的平均成绩（精确到两位小数），方法名GetAverage()

        static int GetAverage(float a, float b, float c)
        {
            (a + b + c) / 3 = d;
            d = Convert.ToDouble().ToString("0.00");
            return d;

        }

        static void Main(string[] args)
        {
            float ls = 100.22f;
            float hyl = 98.77f;
            float hlc = 96.88f;
            GetAverage(ls, hyl, hlc);

        }





















    }
｝